﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using FooFun.DataElements.Dtos;
using PhysicalDataProvider;

namespace FAQFrameworks
{
    public class AccountManager
    {
        public DataTable ListAllAccount()
        {
            DataTable dataTable
                = DataService.FillTable("SELECT * FROM t_Accounts");

            return dataTable;
        }

        public IDataElement ListAll()
        {
            DataTable dataTable
                = DataService.FillTable("SELECT * FROM t_Accounts");

            return new DataTableDataElement(dataTable);
        }
    }
}
